

import asyncio
import time

async def test():
    time.sleep(3)
    print('执行异步函数')
    await print('完成了')


if __name__ == '__main__':
    # loop=asyncio.get_event_loop()
    # print('start')
    # t=test()
    # print('进入事件循环')
    # loop.run_until_complete(t)
    # print('完成')
    # loop.close()
    print('start')
    test()
    print('end')
